package com.yunwaikeji.gy_tool_library.model;

public class GYResultModel<T> extends GYBaseModel {
    private int code;
    private boolean success;
    private String msg;
    private T data;

    public int getCode() {
        return code;
    }

    public GYResultModel<T> setCode(int code) {
        this.code = code;
        return this;
    }

    public boolean isSuccess() {
        return success;
    }

    public GYResultModel<T> setSuccess(boolean success) {
        this.success = success;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public GYResultModel<T> setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public T getData() {
        return data;
    }

    public GYResultModel<T> setData(T data) {
        this.data = data;
        return this;
    }
}
